package models

import (
	"gitee.com/xuxinzhi2206/corehub/database/mysql"
	"gorm.io/gorm"
)

func AutoMigrate() error {
	return mysql.WithMysql(func(db *gorm.DB) error {
		return db.AutoMigrate(UserShop{}, Order{}, Goods{})
	})
}
